Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] raise informative errors directly when Booster creation fails #5014

Merged
merged 4 commits into from
Feb 19, 2022

Conversation

jameslamb
Copy link
Collaborator

@jameslamb jameslamb commented Feb 17, 2022

Based on #5007 (comment), I started working on a PR to remove lgb.check.obj() from the R package.

While doing that, I found that the try() in Booster$initialize() made it difficult to catch specific error messages in tests. I think that that try() is left over from prior to the work for #3016. Now that errors from the C++ side are raised directly as R errors, I no longer think it's necessary.

This PR doesn't change anything about when the package raises an error, just the content of the error message.

Note for Reviewers

I recommend using "Hide whitespace" when reviewing this diff.

Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

…t/LightGBM into r/simplify-booster-construction
@jameslamb jameslamb merged commit b99a8f0 into master Feb 19, 2022
@jameslamb jameslamb deleted the r/simplify-booster-construction branch February 19, 2022 14:25
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants